
<h2 align="center">{[if $result.purchase_x.customer_x->fullname neq '']}
{[$result.purchase_x.customer_x->fullname]}<br/>
{[else]}
景荣精密产品（深圳）有限公司<br/>
{[/if]}
进货单 #{[$result.id]}</h2>

<div class="view_1">
<table>
	<tr>
		<td width="50%" valign="top">
		<fieldset style="height: 32px;">
		<h3>供应商：{[$result.supplier_x->fullname]}</h3>
		电话：{[$result.supplier_x->tel]} 传真：{[$result.supplier_x->fax]}<br /></fieldset>
		</td>
		<td width="1%"></td>
		<td width="24%" valign="top">
		<fieldset style="height: 32px">
		采购单：{[$result.purchase]}<br />
		送货单：{[$result.number]}
		</fieldset>
		</td>
		<td width="1%"></td>
		<td width="24%" valign="top">
		<fieldset style="height: 32px">		
		入库日期：{[$result.date]}<br />
		入库员：{[$result.emp_t]} [{[$result.emp]}]<br />
		</fieldset>
		</td>
	</tr>
</table>
</div>

<div class="view_3">
<table>
	<tr align="center">
		<td>序号</td>
		<td>名称</td>
		<td>规格</td>
		
		<td>数量</td>
		<td>单位</td>
		<td>单价</td>
		<td>小计</td>
		
		<td>产品</td>
		<td>备注</td>	
	</tr>
	{[assign var="pp" value="`$result.purchase_x.tax/100`"]}
	{[foreach name=outer key=key item=item from=$in_list]} 
	{[assign var="no" value="`$key+$pager->from+1`"]}
	
	{[assign var="total" value="`$item.amount*$item.price`"]} 
	{[assign var="totals" value="`$totals+$total+$total*$pp`"]}
	<tr align="center" onMouseOver="this.style.backgroundColor='#D2E4FC'" onMouseOut="this.style.backgroundColor=''">
		<td>{[$no]}</td>
		<td>{[$item.name]}</td>
		<td>{[$item.standard]}</td>
		
		<td>{[$item.amount|string_float]}</td>
		<td>{[$item.unit]}</td>
		<td>{[$item.price+$item.price*$pp|money]}</td>
		<td>{[$total+$total*$pp|money]}</td>
		
		<td>{[$item.mold_t]}</td>

		<td id="item_content_{[$no]}">{[$item.content|truncate:30]}</td>
	</tr>
	{[/foreach]}
	<tr align="center">
		<td colspan="6">总计（大写）{[$result.purchase_x.currency_t]} {[$totals|money|rmb]}</td>
		<td>{[$totals|money]}</td>
		<td colspan="2"></td>
	</tr>
	<tr>
		<td colspan="9" valign="top" style="font-size:12px;">备注：<br/>
		<br/>
	{[$result.content|nl2br]}</td>	
	</tr>
	<tr>
		<td colspan="9" style="font-size:12px;">说明：
		<ol>
			<li>此单为采购物品验收后合格品入库单据。</li>
			<li>进货单经仓库文员、品管、仓管、仓库主管签核后交采购、财务对账。</li>
			<li>进货单一式三联，仓库、采购、财务各一联。	</li>
			<li>原则上一张送货单打印对应一张进货单，仓库分发各相关单位时，进货单必须附上供应商之送货单。</li>
		</ol>				
		</td>
	</tr>
</table>
</div>

<div class="view_3">
<table>
	<tr height="50px">
		<td width="25%">审核：</td>
		<td width="25%">仓管：</td>
		<td width="25%">品管：</td>
		<td width="25%">制单：</td>
	</tr>
</table>
</div>

<link type="text/css" href="inc/print.css?r={[$smarty.now]}" rel="stylesheet">
<script type="text/javascript" src="js/material/in/purchase/view.js?r={[$smarty.now]}"></script>
